package com.serviceImp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.PointMapper;
import com.dao.RunRecordMapper;
import com.model.Point;
import com.model.RunRecord;
import com.service.RunService;

@Service
public class RunServiceImp implements RunService{
	
	@Autowired
	PointMapper pointMapper;
	
	@Autowired
	RunRecordMapper runRecordMapper;

	@Override
	public int insertSelective(Point record) {
		// TODO Auto-generated method stub
		return pointMapper.insertSelective(record);
	}

	@Override
	public int insertSelective(RunRecord record) {
		// TODO Auto-generated method stub
		return runRecordMapper.insertSelective(record);
	}

	@Override
	public List<Point> selectByRunRecordId(Integer runrecordId) {
		// TODO Auto-generated method stub
		return pointMapper.selectByRunRecordId(runrecordId);
	}

	@Override
	public RunRecord selectRunRecordByUidOrder(Integer userId) {
		// TODO Auto-generated method stub
		return runRecordMapper.selectRunRecordByUidOrder(userId);
	}

}
